package com.wfcm.dao;

import com.wfcm.entity.CourseWork;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WfCourseWorkDao {

    List<CourseWork> courseIdAndChapterId(@Param("userId") Integer userId);

    Integer finishedCourseWork(@Param("userId") Integer userId);

    List<CourseWork> myCourseWorkList(CourseWork courseWork);

    List<CourseWork> queryMyCourseWork(Integer userId);

    CourseWork queryCourseWorkByChapterId(CourseWork courseWork);

    CourseWork queryMemberWork(CourseWork courseWork);

    Integer selectCount(Integer userid);

    Integer insertMemberWork(CourseWork courseWork);

    Integer updateMemberWork(CourseWork courseWork);
}